﻿/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-05-26 11:32:31
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-10-23 09:45:11
 * @FilePath: /utools_web/config/routes.ts
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */

export default [
  {
    path: '/user',
    routes: [
      {
        name: '登录',
        path: '/user/login',
        component: './User/Login',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/welcome',
    name: '欢迎使用',
    icon: 'smile',
    component: '@/layouts/layout',
    routes: [
      {
        path: '/welcome',
        redirect: '/welcome/homepage',
      },
      {
        name: '欢迎使用',
        path: '/welcome/homepage',
        component: './HomePage',
      },
      {
        name: '用户列表',
        path: '/welcome/users',
        component: './Users',
      },
      {
        name: '团队列表',
        path: '/welcome/orgs',
        component: './Orgs',
      },
      {
        name: '项目管理',
        path: '/welcome/projects',
        component: './Projects',
      },
      {
        name: '项目类型管理',
        path: '/welcome/projectlogs',
        component: './ProjectLogs',
      },
      {
        name: '项目类型管理',
        path: '/welcome/projecttypes',
        component: './ProjectTypes',
      },
    ],
  },
  {
    name: '欢迎使用',
    path: '/project/:id',
    component: './projectDetail',
  },
  {
    path: '*',
    layout: false,
    component: './404',
  },
];
